<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/9/5
  Time: 21:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>详细</title>
    <script src="${pageContext.request.contextPath}/statics/layui.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/layui.css"/>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>添加电影信息</legend>
</fieldset>
<table border="1" class="layui-table">
    <tr>
        <td>电影名称:</td>
        <td>${movie.movieName}</td>
    </tr>
    <tr>
        <td>电影类型:</td>
        <td>${movie.movieType}</td>
    </tr>
    <tr>
        <td>电影价格:</td>
        <td>${movie.price}</td>
    </tr>
    <tr>
        <td>是否推荐:</td>
        <td>
            <c:if test="${movie.recommend==0}">
                不推荐
            </c:if>
            <c:if test="${movie.recommend==1}">
                推荐
            </c:if>
        </td>
    </tr>
    <tr>
        <td>上映时间:</td>
        <td><fmt:formatDate value="${movie.startTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
    </tr>
    <tr>
        <td>下映时间:</td>
        <td><fmt:formatDate value="${movie.endTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
    </tr>
    <tr>
        <td>投票数:</td>
        <td> ${movie.votes}</td>
    </tr>
    <tr>
        <td>操作:</td>
        <td>
            <input type="button" value="返回" onclick="javascript:history.back()"
                   class="layui-btn layui-btn-primary">
        </td>
    </tr>
</table>
</body>
</html>
